package com.michaelli.androidmoneyrecord.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;

public abstract class BaseDAO {
	protected SQLiteDatabase sdb;
	public BaseDAO(Context ctxt){
		sdb=new DBHelper(ctxt).getWritableDatabase();
	}

	public void closeDB(){
		if(sdb!=null){
			sdb.close();
		}
	}

}
